#ifndef VHISTORY_H
#define VHISTORY_H

#include <QWidget>
#include "flowlayout.h"

namespace Ui {
class VHistory;
}

class VHistory : public QWidget
{
    Q_OBJECT

public:
    explicit VHistory(QWidget *parent = nullptr);
    ~VHistory();

    void init();
    void refreshUI();
private slots:
    void on_pushButton_clicked();

    void on_pushButton_clear_clicked();

private:
    Ui::VHistory *ui;

    enum SessionGroup{
        Today = 0,
        ThisWeek,
        ThisMonth,
        ThisYear,
        Other,
    };

    FlowLayout *m_todayLayout = nullptr;
};

#endif // VHISTORY_H
